package one.stand.service;

import com.jmp.base.dto.DynamicCommentSaveVo;
import one.stand.model.Dynamic;

public interface DynamicService {

    /**
     * 添加/修改公司动态/文章
     */
    void addDynamicInfo(Dynamic model);

    /**
     * 删除公司动态/文章
     */
    void delDynamicInfo(Integer id, Integer userId);

    void deleteByRelate(Integer relateType, Integer relateId);

    void updateByRelate(Integer relateType, Integer relateId, Dynamic dynamic);

    DynamicCommentSaveVo commentSave(Integer commentType, Integer dynamicId, Integer parentId, Integer userId, String text, Integer cardId);

    void commentRemove(Integer commentId, Integer userId);

    void commentThumbs(Integer commentId, Boolean thumbsFlag);
}
